home *** CD-ROM | disk | FTP | other *** search
- // exempvw.cpp : implementation of the CExempleView class
- //
-
- #include "stdafx.h"
- #include "exemple.h"
-
- #include "exempdoc.h"
- #include "exempvw.h"
-
- #include "dial1.h"
- #include "dial2.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CExempleView
-
- IMPLEMENT_DYNCREATE(CExempleView, CFormView)
-
- BEGIN_MESSAGE_MAP(CExempleView, CFormView)
- //{{AFX_MSG_MAP(CExempleView)
- ON_COMMAND(ID_EXEMPLE_DIALOGUE1, OnExempleDialogue1)
- ON_COMMAND(ID_EXEMPLE_DIALOGUE2, OnExempleDialogue2)
- ON_BN_CLICKED(IDC_BPDIAL1, OnBpdial1)
- ON_BN_CLICKED(IDC_BPDIAL2, OnBpdial2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CExempleView construction/destruction
-
- CExempleView::CExempleView()
- : CFormView(CExempleView::IDD)
- {
- //{{AFX_DATA_INIT(CExempleView)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- // TODO: add construction code here
- }
-
- CExempleView::~CExempleView()
- {
- }
-
- void CExempleView::DoDataExchange(CDataExchange* pDX)
- {
- CFormView::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CExempleView)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CExempleView diagnostics
-
- #ifdef _DEBUG
- void CExempleView::AssertValid() const
- {
- CFormView::AssertValid();
- }
-
- void CExempleView::Dump(CDumpContext& dc) const
- {
- CFormView::Dump(dc);
- }
-
- CExempleDoc* CExempleView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CExempleDoc)));
- return (CExempleDoc*)m_pDocument;
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CExempleView message handlers
-
- void CExempleView::OnExempleDialogue1()
- {
- // TODO: Add your command handler code here
- CDial1 dial(this);
- dial.DoModal();
-
- }
-
- void CExempleView::OnExempleDialogue2()
- {
- // TODO: Add your command handler code here
- CDial2 dial(this);
- dial.DoModal();
-
- }
-
- void CExempleView::OnBpdial1()
- {
- // TODO: Add your control notification handler code here
- OnExempleDialogue1();
-
- }
-
- void CExempleView::OnBpdial2()
- {
- // TODO: Add your control notification handler code here
- OnExempleDialogue2();
-
- }
-